Split GIF and PNG creation back up (faster for PNGs); find width and height in initial parse, not in .matrix creation.