Fix incorrect output, when input format has alpha but flags don't have set IMAGE_HAS_ALPHA. Flags are meant to control output format, but input format may be arbitrary, as usually given by video driver(screenshots, etc)