Template:Hide if placeholder image/doc

Usage
image

Returns with the image name of blank if the parameter was a placeholder image.