Fixed memory error in image_load. Fixing valid header for image_load now.