fix getting image for id