layer:
removed call to clear() on resize
removed classmember clear()
using constants::clear_image_pixels(...)