Return a sensible size for glsl image types.

Based on patch by Steinar Gunderson.
Fix build on Freetype 2.5.

Reported by Patrick Matthhai/Debian.