Keep file extension when creating a new file in the nokia.image-processi...

...ng localmsg server
The third time we add a block like this, we should refactor it!