prevent render from happening before image load