Phonegap plug for creating thumbnails of images