Set max width and height for directory photos