set photo dimensions