re-arranged pipe stream into express, before getting rid of through
front end, convert image to 64 base