[fea] encode only images

I don't want to encode anything except images.