Bokeh effect and its application to photography