set max image dimensions