Revert "Add imageFilenameExtension API to WebElement"

This reverts commit 5db252258f184a10c70968bc4a4aa69257f16e86.