test for afw and some improvements at zoomimage

+ some fixes for afw