Import of necessary class
Another way of getting the origin coordinate of a parent image
Removal of unnecessary :origin field