fixes to get image atlas working