Illustration:

bacter
Original image

drawings
Drawings

result

Result

4 drawings for the first class of bacteria: output with gray level 255
3 drawings for the second class of bacteria: outpout with gray level 170.
2 drawings for the third class of bacteria: output with gray level 85.
Background: autput with gray level 0.