use timeout with getImage