[MOD] decode file method used in facebook sharing and in ImageLoader