Yes. With classes and Pseudo elements.
Say you add a class to your image
.myimage
Set the position to relative.
Then in the class editor make another class called
.myimage::after or .myimage::before
Set the position to absolute, height and width to 100% or use positioning. Then set a BG gradient.