Select method

added select method and global current image variable