PNG file alteration using GCC C