fixing image paths for JS build