Rewrote metadata handler

Added partial PNG header support (IDHR, tEXt, iTXt)