added 'pipes' and moved some code sugarcube-image over there