Update Image.php

Adding trim on image.