Resample down textures that are too large

Resample image based textures down to the maximum dimensions supported
by the device
Merge branch 'master' of https://github.com/playcanvas/engine