Added image selection functionality