better implementation of bg image