Fix setting targetHeight option for getPicture.