Fix image resolving with spaces in name