Fix upload of files on version 4.2
Add method to convert QImage to QByteArray in switcher format

Code contributed by qatemconnection@mail.com