check image value before attempting to clear