Features/different image formats/communication system settings

## Status: ready to merge

Responsible: Andre Orvalho
Reported: Andre Orvalho
Relevant to: different image types

Adds support for different image types for the communication system.
Makes sure the file extension is passed and used in all the functions.

Corrects and adds a few tests as well.