Update CheeImage.php

Edit and resolve bugs