CHANGED:applied the saveImageFile with bitmapdata,dialog function