Similar rationale as in previous commit. (cherry picked from commit 16ba665db6)
16ba665db6
-Removed support of loading BitMap as image, now it must be load as a pnm, also closes #2040