Fix getting image issue