Fix incorrect variable usage
Retrieval of image did not work anymore