Keep opaque on resize

I needed to test if a resized UIImage was opaque or not to know if I could safely store it in JPEG format (photo) or I should use PNG (image with alpha mask).

Resizing an UIImage always resulted in an UIImage with an alpha channel, so everything was always stored as PNG.

This fix my problem.