Upgraded to Imaging SDK 1.1.177 and some code cleanup