cleaning and doing a more generic pipeline for writing image manipulation