JSON plugin: Resolve relative paths of image layers

Relative image reference of image layers were not being resolved by the
VariantToMapConverter, leading to images not being found when the map
location didn't happen to match with Tiled's working directory.

Also made sure the path is cleaned from "./" or "../" parts.