update image layout