Add first pass at lazy-images function using request animation frame