You could try this:
Threshold the image to obtain the red rectangle, locate the center through centroid detection and define a matrix for the area of the rectangle (one side i.e. square) with a gaussian distribution with the mean and stdev of your choice.