Codes for image signal processing