How image enhancement works