change image_path method