Added maximum image dimension configuration