fixed a bug in imagealphamask