Improved tile framing logic, no hardcoded numbers
Added texture atlas creation to the extraction process