Fixed issue with selecting images