added more friendly version of image loader function, stubs for masonry