( mode == 'RGBA' )  --->  ( mode = 'RGBA')  

instead of PR #616