fixed issue where project image is corrupted when project is saved.