working, but not really... not drawing atlas images properly