Extensions to img