Still buggy version of performance improvement on drawing backgrounds