better fix for image_path problem