btnEncode: checks if user selected image/file, then encodes. boolHaveImageToSave is set true;
mntmSaveEncodedImage: saves image.