Bugfixes in image direction.