swapped x and y for qfuncimage since imshow has first dim. vertical and second dim. horizontal