change project.size to a QSize, crop to QImage.copy, and some cleaning
 bug with delete color
bug with new project and undo