add select image function