Fixes issue with image input selector