Restrict Bitmap size to less than or equal to texture size

- Move MAX_TEXTURE_SIZE to Utils as it is now used in 2 places
Do math right
Merge pull request #1 from JayH5/texture-size

Texture size