kevin's changes to try to fix sprite borders