fix bug of pngDecoder
add support animated jpg