automatically set background color on image loads