Fix memory leaks in Phalcon\Image\*