Design Of An End-To-End Consumer Imaging System Simulator With An Emphasis On Efficient Application Of Spatially-Varying Optical Kernels