update style to fit img