preload images before drawing