getimagedata.js initial commit