Added var widthOfPhoto