reintegration of QImageElement by @lludo

reintegration of QImageElement by @lludo
in one commit