added jshint applying any necessary warnings.
fixed example of retrieving image from local database when the storing blobs is supported.
size counter now shows the actual total size that has been stored. When storing base64 the size of the string in bytes is calculated instead of using the size of the original image.