updates to image manipulation