Change hard coded limits of (32768, 32768) pixels for an image to a platform dependant size of (INT_MAX, INT_MAX)