set images size attributes