resize teach page background images