1. A method for rendering an image from a three-dimensional model, the method being performed by a computer system and comprising: receiving the image obtained by ray tracing with the three-dimensional model; identifying one or more blocks of the image; for each block of the one or more blocks: for each Taylor polynomial function of a plurality of Taylor polynomial functions of different orders: estimating a reconstruction error for reconstructing the block of the image using the Taylor polynomial function; identifying one of the plurality of Taylor polynomial functions with a lowest estimated error; and reconstructing the block through the image filter using the identified Taylor polynomial function to obtain a filtered image block; and using the one or more filtered blocks to obtain a filtered image.