Added get image function