Adding is_png function and reading first chunk.