Fixed image editing stuff