refactor method to be more readable
remove unneeded code
Load images as the user scrolls down