photo placement and resizing added