trim transparency from images before saving