Use a directive to load jpg or png.