Image Decoder Fixes

Fixes to memory allocation for BMP and NATIVE
Fixes to source offset images for GIF