Graphics as Input

An image is equivalent to its symbolic expression. You can operate on an image as you would on a symbolic expression.
This input produces some disks:
Type // InputForm after the graphic to get the symbolic expression that corresponds to the graphic:
Type a Wolfram Language Replace command after the output graphic and evaluate:
The disks are now replaced by squares.