Use ImageOps module for contrast adjustment.