Adding image loading boilerplate