Added function prototypes for image manipulation and output.