fix to use images with whitespaces