Sounds quite useful, perhaps make it a staticmethod on Img.