Move image types to constants insteads of vars.

They will be visible outside the package.
Merge branch 'image-type-getter-and-setter'