Adding trim capacity on images