Created smartImage project, also fixed up some redundant code