Update Image.php

Changed a little error that caused the first loop to loop forever. Related to Issue #15