Handle relative path for images