Added edge case logic for atlas consisting one subsprite