updated jquery, modified savePNG function