bugfix in image and connection->get_var()
;ultiple bugfixes