send image buffer instead of redirec