- don't destroy image before creating it in error handling in bmp.c