#2 trying to improve loading and resizing performance