update image with square