fixes image selection