Improve performance of the lazy image loader