Added own constants for image types.

Defined class constants for each IMAGETYPE_*

Also, combined & simplified setting image type.