Implemented maximum image size