WIP - Writes the first cat image incorrectly. Seg Faults on the second image.