picking from an existing image functionality