Able to copy bitmap images into simpler structure.

An image can own its data or not, if it does it must properly release
it. I've created a function to copy bitmaps into a simpler image format.