Restore as_flat_samples methods for DynamicImage
Restore as_flat_samples methods for DynamicImage

Because the return type depends on the buffer's bits per channel, make
the return optional and provide separate methods for 8 and 16 bit
images.

PistonDevelopers/image,PistonDevelopers/image