change image layout and scaling