Added maximum image size.