Fix error in sending image path instead of actual file