add image convert method to service and helper