modify image layout