Added support for composer.
Fixed validateImage in UploadControl