Tried it out before without success, but I think it was because the file was set to indexed color mode. Tried again with RGB mode and it worked, thanks!