Use UUID for file icon reference and declare it as dependency

d.o issue: https://www.drupal.org/node/2362095
count() ?

I would suggest to move this logic to copyFormValuesToEntity(), then you can get the file directly from $form_state values, and assign it to the entity. Renaming the form element would also make this part here less confusing I think.