get target_dimensions after img loaded

if the img didn't load before, it might not get target_dimensions.