fixed scope for transform and transformBack methods
return black if not color is set