The Effect of Task on Visual Attention and its Application to Image Quality Assessment Metrics