Add function declaration of RetrieveImage
Try and retrieve image based on id