Random cleanup.
Cleanup
TODO for better model
Merge remote-tracking branch 'refs/remotes/prglab/master'
Connecting encoder to the FE.

o Options passing from FE.

o Use maxSize in estimating the required base64 values.

o Model for resizing.
Merge remote-tracking branch 'ian/master'