Add prototypes in xs.
Add image_scale code.
Add image_similarity using PSNR.