Monify images with two colors via canvas element