add function to transform images