Preliminary analysis and refine filling of pictures