Small set of functions to scale, crop and compress an image to jpeg using Appcelerator Titanium on Android platforms