Increased console log output. Fixed bugs to handle updating existing image