Finally got image selection to work