adds image css properties