cache pictures first