hex will be used instead of base64
add 1x2 images, handle newlines, force exact resizing