Size of illustrations in an e-book?

Obviously, one wishes to keep the size of illustration files down, in order to avoid bulking up the size of your ebook.

What’s the best resolution? I usually work in 300 dpi, but some programs start with 96 dpi.