Fix bug where image frame is visible before image loads