adds mobile class to bgimage