preparing tiles before image loads