add get image function
add get image function