Cycles-Bake: cleanup (removing uneeded function)
Cycles-Bake: better support for multiple materials referring to the same image

This brings performance gain, as well as a bugfix where the margin would advance over one of the images