New method to create an image with a given color and corner radius