add image resize style to css