You should be aware that this(<code>iler_img.image</code>) will throw a DoesNotExist exception if the attached image is in trash.