update popup after image loads