Retry after a pause when height/width is zero

added a timeout to ensure the plugin does not assign zero values to
height/width