refactor the multi-layer image class
fix some bugs about ray tracing
add pyramid-based image inpainting.