[Fix] fixes #342: creating patches with literal color errors

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>
Merge pull request #357 from okomarov/master

[Fix] fixes #342: creating patches with literal color errors