Delete unecessary image references after image processing to allow memory release. Closes #2522
Added .jshintrc file and updated JSHint compatibility.
Improved memory handling with image processing + JSHint compatibility updates.