optimized image function, PbcBase, Wedge