split monolithic picture.c into picture_{tools,psnr,rescale}.c

Change-Id: Ia5eb5496e4337e5bac8203872c5b014cad21c4f9