Fixes image borders and bg colors