Fixed a bug regarding SetImageSource()