add front-end image size validation