Make create_stubs pass on args and kwargs to test function

Change-Id: I513e93bf08104b0c6a29c6d43c2b6bbdd907b4ce
Remove 'file' source type when HORIZON_IMAGES_ALLOW_UPLOAD is False

settings.HORIZON_IMAGES_ALLOW_UPLOAD is meant to hide everything
related to direct file uploads in the CreateImage dialog, but at
the moment it's just removing the image_file field and leaving
"File" as an option in the Source type dropdown.

This change removes the 'file' source type when necessary, and
hides the source type field altogether if there is only one source.

Change-Id: Idefb225bccb26fc4cf04f78387e205cb2fbacfd9
Closes-bug: 1251101