some notes on image fitting