fix min atlas width when subtexture width = atlas width; also fix usage of safetyMargin
Merge branch 'fix-minimum-atlas-size' into develop