fixed topPos NaN when bgposition is cover/contain

topPos is already set before when bgposition[0].match(/contain|cover/)
Probaby wanted `|number`.