if assigned to img, raise error!