cach recently loaded images in memory for better ux