Adding documentation and a test to the image size validation