[Bug 1108] Added missing INVALID_IMAGE_SIZE exceptions in createImage