trying to have image ready on load