fixed images loading and buffer