creates BufferedOutputStream for image serving