try to return png image from api endpoint