encode: release derived image of input surface after data uploading

driver does strict check on buffer owership upon vaBeginPicture() now.