Fixed a bug in the images::LinearGradient class