Added a simpler method for detecting linear gradients.

Revert "Solve 404 error when background-image is not a valid URL (bootstrap)"

This reverts commit a5f1e18f22fa1e4f85c527ed32629d9fdf6ac17d.
Added a simpler method for detecting linear gradients.