#0004 apply transformation to images. Clean code a little.