This is my first time trying to apply a gradient layer to a CustomImageView, and to do that within a UICollectionViewCell, I decided to create the following function: