update get image method